package com.mayee.me.core.common.utils.result;

import lombok.Getter;

/**
 * @description:
 * @author: mayee
 * @create: 2020-12-27 07:56
 */

@Getter
public enum Result {

    SUCCESS(0, "success"),
    FAIL(400, "fail"),
    ERROR(500, "error");

    private final int code;
    private final String msg;

    Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
